package Configer

import com.typesafe.config.{Config, ConfigFactory}
import scalikejdbc.config.DBs

object Configer {
  //加载配置文件
  private lazy val load: Config = ConfigFactory.load()
  //加载序列化
  val serializer: String = load.getString("spark.serializer")

  //配置mysql连接
  DBs.setup()
  val url: String = load.getString("db.default.url")
  val user: String = load.getString("db.default.user")
  val password: String = load.getString("db.default.password")
  val driver: String = load.getString("db.default.driver")

}
